package com.yonyou.brigade.third_parties.tuniu.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author duhqh@yonyou.com
 * @since 2018-11-07
 */
@TableName("tn_dept_history")
public class TnDeptHistory extends Model<TnDeptHistory> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 租户ID
     */
    private String tenant;
    /**
     * 组织PK
     */
    private String orgpk;
    /**
     * 部门名称
     */
    @TableField("dept_Name")
    private String deptName;
    /**
     * 部门Id
     */
    @TableField("dept_Id")
    private String deptId;
    /**
     * 部门级别 1:一级部门 2:二级部门
     */
    @TableField("dept_Level")
    private Integer deptLevel;
    /**
     * 上级部门Id
     */
    @TableField("superDept_Id")
    private String superdeptId;
    /**
     * 部门领导人员工ID
     */
    @TableField("leading_Id")
    private String leadingId;
    /**
     * 部门领导名称
     */
    @TableField("leading_Name")
    private String leadingName;
    private Date ts;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTenant() {
        return tenant;
    }

    public void setTenant(String tenant) {
        this.tenant = tenant;
    }

    public String getOrgpk() {
        return orgpk;
    }

    public void setOrgpk(String orgpk) {
        this.orgpk = orgpk;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public Integer getDeptLevel() {
        return deptLevel;
    }

    public void setDeptLevel(Integer deptLevel) {
        this.deptLevel = deptLevel;
    }

    public String getSuperdeptId() {
        return superdeptId;
    }

    public void setSuperdeptId(String superdeptId) {
        this.superdeptId = superdeptId;
    }

    public String getLeadingId() {
        return leadingId;
    }

    public void setLeadingId(String leadingId) {
        this.leadingId = leadingId;
    }

    public String getLeadingName() {
        return leadingName;
    }

    public void setLeadingName(String leadingName) {
        this.leadingName = leadingName;
    }

    public Date getTs() {
        return ts;
    }

    public void setTs(Date ts) {
        this.ts = ts;
    }

    public static final String ID = "id";

    public static final String TENANT = "tenant";

    public static final String ORGPK = "orgpk";

    public static final String DEPT_NAME = "dept_Name";

    public static final String DEPT_ID = "dept_Id";

    public static final String DEPT_LEVEL = "dept_Level";

    public static final String SUPERDEPT_ID = "superDept_Id";

    public static final String LEADING_ID = "leading_Id";

    public static final String LEADING_NAME = "leading_Name";

    public static final String TS = "ts";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "TnDeptHistory{" +
        "id=" + id +
        ", tenant=" + tenant +
        ", orgpk=" + orgpk +
        ", deptName=" + deptName +
        ", deptId=" + deptId +
        ", deptLevel=" + deptLevel +
        ", superdeptId=" + superdeptId +
        ", leadingId=" + leadingId +
        ", leadingName=" + leadingName +
        ", ts=" + ts +
        "}";
    }
}
